package com.tengfei.main.question.domain.bo;


import com.tengfei.common.core.validate.AddGroup;
import com.tengfei.common.core.validate.EditGroup;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * 主观题业务对象 qb_subjective
 *
 * @author tengfei
 * @date 2022-07-28
 */

@Data
@ApiModel("主观题业务对象")
public class SubjectiveBo extends QuBaseEntityBo{

    /**
     * 主观题id
     */
    @ApiModelProperty(value = "主观题id")
    @NotNull(message = "主观题id不能为空", groups = { EditGroup.class })
    private Long subId;


    /**
     * 主观题内容
     */
    @ApiModelProperty(value = "主观题内容", required = true)
    @NotBlank(message = "主观题内容不能为空", groups = { AddGroup.class, EditGroup.class })
    private String subContent;

    /**
     * 主观题类型
     */
    @ApiModelProperty(value = "主观题类型", required = true)
    @NotNull(message = "主观题类型不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer subType;

    /**
     * 难度等级
     */
    @ApiModelProperty(value = "难度等级")
    @NotNull(message = "难度等级不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer subGrand;

    /**
     * 知识点
     */
    @ApiModelProperty(value = "知识点")
    @NotBlank(message = "知识点不能为空", groups = { AddGroup.class, EditGroup.class })
    private String subTag;

    /**
     * 题干附件
     */
    @ApiModelProperty(value = "题干附件(只包含图片附件id,通过id查询附件信息,多个id用逗号分隔)")
    private String subStemEnclosure;

    /**
     * 答案
     */
    @ApiModelProperty(value = "答案(多个答案用$分隔)", required = true)
    @NotBlank(message = "答案不能为空", groups = { AddGroup.class, EditGroup.class })
    private String subAnswer;

    /**
     * 题目解析
     */
    @ApiModelProperty(value = "题目解析")
    private String subAnswerContent;

    /**
     * 答案附件
     */
    @ApiModelProperty(value = "答案附件(只包含非视频附件id,通过id查询附件信息,多个id用逗号分隔)")
    private String subAnswerEnclosure;


}
